<?php

namespace App\Console\Commands;

use App\Api\Controllers\Config\CqcPayConfigController;
use App\Common\RefundSuccessAction;
use App\Models\Order;
use App\Models\RefundOrder;
use App\Models\Store;
use App\Services\ElectronicSignature\Strategy\EasypayElectronicSignatureHandler;
use App\Services\Pay\PayService;
use App\Services\PrintSqlService;
use App\Services\Store\StoreMchService;
use App\Util\LockUtil;
use App\Util\SqlWhenUtil;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class ElecCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'elec';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'db:add-channel';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $result = (new EasypayElectronicSignatureHandler())->getSecretKey();
        dd($result);
    }
}
